<!-- MV_LATEST_FRONTPAGE.TPL -->
{*Creado por JMR*}
<input type="hidden" value="{$return_link}" id="return_link"/>
<div style="clear:both;"></div>
<div style="clear:both;">
<div class="titulo_largo">	
		<h3>{$smarty.const.LA_LATEST}</h3>
</div>

 	<div class="superBannerHorizontal">
 	<div id="banner_horizontal"   class="bannerHorizontalCat2" >  	 
		{php}	
 				$primero[0]= "banner_horizonal_01_venta";
				$primero[1]= "banner_horizonal_01_alquiler";
				$primero[2]= "banner_horizonal_01_servicios";
				$segundo[0]= "banner_horizonal_02_venta";
				$segundo[1]= "banner_horizonal_02_alquiler";
				$segundo[2]= "banner_horizonal_02_servicios";
 				echo "<div class=\"horizontalIzquierdo\">";
		    	$section=$primero[rand(0,2)];
				include "ad_get.php";
				echo "</div><div class=\"horizontalDerecho\">";				
				$section=$segundo[rand(0,2)];
				include "ad_get.php";
				echo "</div>";
		{/php}
	</div>
	</div>


<p class="headline">{$smarty.const.LA_SEARCH_DESCR}</p> 
<p>&nbsp;</p>

<table cellspacing="0" class="box ads-table mvial-search-table" style="clear:both;">
<tr>
	<th width="">{$smarty.const.PICTURE_TEXT}</th>
	<th width="30%">{$CATEGORY_URL} {$smarty.const.CATEGORY}</a> {$image_cat}</th>
	{*<th width="300">{$AD_URL} {$smarty.const.TITLE}</a> {$image_title}</th>*}
	<th width="300">{$MARCA_URL} {$smarty.const.BRAND}</a> {$image_brand}</th>
	<th width="300">{$MODELO_URL} {$smarty.const.MODEL}</a> {$image_model}</th>
	{*<th width="300">{$POTENCIA_URL} {$smarty.const.POWER}</a> {$image_power}</th>
	<th width="300">{$HSKMS_URL} {$smarty.const.HSKMS}</a> {$image_hskms}</th>*}
	<th width="300">{$TIPO_URL} {$smarty.const.LA_TYPE}</a> {$image_tipo}</th>
	<th width="300">{$ANIO_URL} {$smarty.const.ANIO}</a> {$image_anio}</th>
	<th width="300">{$UBICACION_URL} {$smarty.const.UBICA}</a> {$image_ubicacion}</th>
	{*<th width="300">{$smarty.const.DESCRIPTION}</a></th>*}
	{*
	{foreach item=extra from=$EXTRA_CAPTION_ARRAY} 
		<th>{$extra.url}{$extra.caption|truncate:15:"...":true}</a> {$extra.sort_img}</th>
	{/foreach}
	*}
	{*
	<th width="10%">{$DATE_URL} {$smarty.const.DATE_ADDED}</a> {$image_date}</th>
	<th width="10%">{$EXPIREDATE_URL} {$smarty.const.LA_AD_EXPIRE}</a> {$image_expire}</th>
	<th width="20%">{$GRADE_URL} {$smarty.const.LA_GRADE}</a> {$image_grade}</th>
	*}
	<th width="">{$PRECIO_URL}Precio</a> {$image_precio}</th>	
</tr>			  
{foreach item=ad from=$ads}  
<tr class="{cycle values=",alt"}">
<td>{$ad.IMAGEYESNO}</td>
<td>{$ad.CATEGORYNAME}</td>{*class="category"*}
{*<td class="pointer"><a href="{$ad.LINK}" title="{$ad.TITLE|escape}">
{if $ad.SPECIAL}<b>{/if}{$ad.TITLE|truncate:50:"...":true}{if $ad.SPECIAL}</b>{/if}</a>
<br /><span style="font-size: 9pt; color:#666666">{$ad.CATEGORYNAME}</span>
</td>*}
<td>{if $ad.SPECIAL}<b>{/if}{$ad.MARCA}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
<td>{if $ad.SPECIAL}<b>{/if}{$ad.MODELO}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
<td>	{if $ad.SPECIAL}<b>{/if}
			{if $ad.cat_grandfatherid == $smarty.const.ID_CAT_COMPRA}
				{$smarty.const.OPERACION_VENTA}
			{else}
				{$smarty.const.OPERACION_ALQUILER}
			{/if}
			{if $ad.SPECIAL}</b>{/if}&nbsp;
</td>
{*<td>{if $ad.SPECIAL}<b>{/if}{$ad.POTENCIA}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
<td>{if $ad.SPECIAL}<b>{/if}{$ad.HSKMS}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>*}
<td>{if $ad.SPECIAL}<b>{/if}{$ad.ANIO}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
<td>{if $ad.SPECIAL}<b>{/if}{$ad.PROVINCIA}{if $ad.SPECIAL}</b>{/if}&nbsp;</td>
{*<td class="pointer">
{if $ad.SPECIAL}<b>{/if}{$ad.DESCRIPTION|truncate:100:"...":true|strip_tags:""}{if $ad.SPECIAL}</b>{/if}
</td>*}

{*
{foreach item=extraval from=$ad.EXTRA_VALUES} 
		<td>{$extraval|truncate:20:"...":true}&nbsp;</td>
{/foreach}
<td>{$ad.REGDATE}&nbsp;</td>
<td>{$ad.EXPIREDATE}&nbsp;</td>
<td>{$ad.GRADE}</td> *}
<td align="right"><small>{$ad.MONEDA}</small>&nbsp;{$ad.PRECIO}&nbsp;</td></tr>
<!--
<td>{$ad.e_1.value|truncate:10:"...":true}</td></tr>
-->
{/foreach} 



</table>


<!--  navigation links-->
	<table style="margin: 17px auto 0pt; border-collapse: collapse; text-align: left; direction: ltr;" style="clear:both;">
	<tbody>
		<tr valign="top">	
			{if $prev_url}
				<td>	 
					<a href="{$prev_url}" class="button">&lt; {$smarty.const.PREVIOUS_ADS} {$NUM_PER_PAGE}</a>
				</td> 
			{/if}	
			{foreach item=page from=$listOfPages}
				<td>	
					{if $page.isCurrent}
						<label class="currentPage">{$page.name}</label>
					{else}
						<a class="button" href="{$page.url}">{$page.name}</a>						
					{/if}
				</td>
			{/foreach}	
			{if $next_url}
				<td>	 	
					<a href="{$next_url}" class="button">{$smarty.const.NEXT_ADS} {$NUM_PER_PAGE} &gt;</a>
				</td>			 
			{/if}
		</tr>
	</tbody>
	</table>
	<!--  end navigation links-->
</div>
<!-- //MV_LATEST_FRONTPAGE.TPL -->
